package com.onec.service.manage.dao;


import com.onec.service.manage.entity.RolePermission;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 处理角色信息！
 *
 * @author onec
 */
@Repository
public interface RolePermissionMapper {


    /**
     * 手机号查询
     *
     * @param rolePermissionId
     * @return
     */
    RolePermission selectRolePermissionById(Long rolePermissionId);

    /**
     * 手机号查询
     *
     * @param roleId
     * @return
     */
    List<RolePermission> selectByRoleId(Long roleId);

    /**
     * 手机号查询
     *
     * @param permissionId
     * @return
     */
    List<RolePermission> selectByPermissionId(Long permissionId);


}
